import MyLogin from "@/pages/MyLogin.vue";
import PostManage from "@/pages/PostManage";

import BusinessManage from "@/pages/BusinessManage";
import BusinessApply from "@/pages/BusinessApply";

import CanteenManage from "@/pages/CanteenManage";
import DeliveryManage from "@/pages/DeliveryManage";
import CustomManage from "@/pages/CustomManage";
import Personal from "@/pages/Personal";
import Vue from "vue";

import VueRouter from "vue-router";
Vue.use(VueRouter);

const routes = [
  {
    path: "/deliver",
    component: DeliveryManage,
  },
  { path: "/business", component: BusinessManage },
  { path: "/apply", component: BusinessApply},
  { path: "/canteen", component: CanteenManage },
  { path: "/custom", component: CustomManage },
  { path: "/person", component: Personal },
  { path: "/post", component: PostManage },
  { path: "/", component: MyLogin },
];

const router = new VueRouter({
  routes,
});

export default router;
